package examples
{
	import flash.display.Bitmap;
	
	import com.wskeee.ec.components.Label;
	import com.wskeee.ec.containers.Container;
	import com.wskeee.ec.containers.HBox;
	import com.wskeee.ec.containers.VBox;
	import com.wskeee.ec.styles.Icons;

	public class IconExample
	{
		public static function createIcons():Container
		{
			var mainBox:VBox = new VBox();
			var head:Label = new Label();
			head.text = "Icons";
			mainBox.verticalGap = 20;
			mainBox.paddingTop = mainBox.paddingBottom = mainBox.paddingLeft = mainBox.paddingRight = 5;
			mainBox.addChild(head);
			
			var hbox:HBox = new HBox();
			//hbox.border = true;
			hbox.borderColor = 0xff0000;
			hbox.paddingTop = hbox.paddingBottom = hbox.paddingLeft = hbox.paddingRight = 2;
			var bm:Bitmap;
			for(var i:String in Icons.icons)
			{
				bm = new Bitmap(Icons.icons[i]);
				hbox.addChild(bm);
			}
			mainBox.addChild(hbox);
			
			return mainBox;
		}
	}
}